package cn.tedu.xmfhlittlebird.service.impl;

import cn.tedu.xmfhlittlebird.mapper.StoreOrderMapper;
import cn.tedu.xmfhlittlebird.pojo.dto.OrderListDTO;
import cn.tedu.xmfhlittlebird.pojo.dto.OrderMarkAddDTO;
import cn.tedu.xmfhlittlebird.pojo.vo.OrderDetailVO;
import cn.tedu.xmfhlittlebird.pojo.vo.OrderStandardListVO;
import cn.tedu.xmfhlittlebird.service.IOrderService;
import lombok.extern.slf4j.Slf4j;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Slf4j
@Service
public class OrderServiceImpl implements IOrderService {

    @Autowired
    StoreOrderMapper orderMapper;

    @Override
    public List<OrderStandardListVO> findStandard() {
        return orderMapper.findStandard();
    }

    @Override
    public OrderDetailVO findDetail(Long orderId) {
        return orderMapper.findDetail(orderId);
    }

    @Override
    public void addMark(OrderMarkAddDTO orderMarkAddDTO) {
        orderMapper.addMark(orderMarkAddDTO);
    }

    @Override
    public List<OrderStandardListVO> findList(OrderListDTO orderListDTO) {
        return orderMapper.findList(orderListDTO);
    }

    @Override
    public List<OrderStandardListVO> findListItem(Integer status) {
        return orderMapper.findListItem(status);
    }
}
